﻿<UserControl
    x:Class="WinRTXamlToolkit.Sample.Views.ContentControlExtensionsTestView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinRTXamlToolkit.Sample.Views"
    xmlns:controls="using:WinRTXamlToolkit.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Extensions="using:WinRTXamlToolkit.Controls.Extensions"
    mc:Ignorable="d">
    <UserControl.Resources>
        <DataTemplate
            x:Key="ContentTemplate1">
            <TextBlock
                FontSize="48"
                FontWeight="ExtraLight"
                Text="Light" />
        </DataTemplate>
        <DataTemplate
            x:Key="ContentTemplate2">
            <TextBlock
                FontSize="72"
                FontWeight="ExtraBold"
                Text="Heavy" />
        </DataTemplate>
    </UserControl.Resources>

    <Grid>
        <TextBlock
            Text="Click button to see ContentTemplate transition"
            Style="{StaticResource SubheaderTextStyle}" />

        <Button
            x:Name="TestButton"
            Click="TestButtonClick"
            VerticalAlignment="Center"
            HorizontalAlignment="Center"
            Extensions:ContentControlExtensions.FadeTransitioningContentTemplate="{StaticResource ContentTemplate1}" />
    </Grid>
</UserControl>
